<template>
  <div class="overseas">
      <div class="overseaslist" v-for="(item,index) in productlist" :key="index">
          <img :src="item.thumbnail" alt="">
          <div class="overseasinfo">
            <nuxt-link target="_blank" :to="'/house/' + item.id">{{item.name}}</nuxt-link>
            <p>{{item.roomType}} | {{item.propertyRight}} | {{item.planningArea}} | {{item.handingTime}}交房 | {{item.propertyRight}}</p>
            <p class="overseasyoushi info1">
              <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-dingwei"></use>
              </svg>
             {{item.address}}</p>
            <p class="info1">
              <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-gupiao"></use>
              </svg>
              近一年房价涨幅 {{item.yearIncreaseRate}}% | 年均租金收益 {{item.yearRent}}% | 首付比例 {{item.firstPay}}%</p>
          </div>
          <div class="price">
            ￥{{item.price}}万
          </div>
      </div>

      <house :newslist1="newslist1" :newslist2="newslist2"></house>
  </div>
</template>


<script>
import asyncApi from "../../../static/js/asyncApi.js";
import house from "../../../components/house";

export default {
  data() {
    return {

    };
  },
  methods: {

  },
  components:{
    house
  },
  computed:{

  },
  watch:{

  },
  mounted(){

  },
  head () {
    return {
      title: "海外房产投资平台_海外房产投资_泰国房产_海外房产移民_海外房产网-天沁财富",
      meta: [
         { hid:"keywords",name: 'keywords', content: '海外房产,海外投资,泰国房产,海外房产投资,海外房产移民,海外房产信息,海外房产网' },
         { hid:"description",name: 'description', content: '天沁财富海外房产投资平台，为高净值群体提供全方位的海外房产配置服务，包括泰国房产、印度房产、东欧房产等海外房产投资、海外房产移民。' }
      ]
    }
  },
  async asyncData() {
    let [data1,data2,data3] = await Promise.all([
      asyncApi.getHouseList({"page": 1,"pageSize": 10,orderBy:"weigh",orderByType:"desc"}),
      asyncApi.asyncGetCategoryPost({categoryName: '投资策略' ,page: "1",pageSize: "10",orderBy:"createtime",orderByType:"desc"}),
      asyncApi.asyncGetCategoryPost({categoryName: '财经头条' ,page: "1",pageSize: "10",orderBy:"createtime",orderByType:"desc"})
    ])
    return {
      productlist: data1.data.data.list,
      newslist1: data2.data.data.list,
      newslist2: data3.data.data.list      
    };
  },
};
</script>

<style scoped>
.overseas{
  width: 1200px;
  margin: 10px auto;
  box-sizing: border-box;
}
.overseaslist{
  overflow: hidden;
  display: flex;
  transition: all 1s;
  background: #fff;  
  padding: 20px 30px;
  border-bottom: 1px solid #e5e5e5;
}
.overseaslist img{
  height: 200px;
  width: 276px;
}
.overseaslist:hover{
  padding-left: 100px;
}
.overseaslist:hover a{
  color: #cd9c54;
}
.overseasinfo{
  flex-grow:1;
  margin-left: 20px;
}
.overseasinfo a{
  display: block;
  margin-top: 20px;
  font-size: 24px;
}
.overseasinfo p{
  margin-top: 20px;
  font-size: 16px;
  color: #666666;
}
.overseasinfo .info1{
  color: #999999;
}
.overseasinfo .overseasyoushi{
  margin-top: 40px;
}
.price{
  width: 200px;
  height: 200px;
  line-height: 200px;
  font-size: 30px;
  color: #f44640;
}
</style>
